package org.example.myframework.frame.demo.designPattern.filterPattern;

public abstract class BaseArticleFilter implements IArticleFilter{

    public abstract boolean doFilter(ArticleContext articleContext);

    /**
     * 做了一个抽象方法，将这个抽象方法传递给子类实现
     * @param articleContext
     */
    private void filter(ArticleContext articleContext) {
        doFilter(articleContext);
        sendMessage();
    }

    private void sendMessage() {

    }
}
